package com.wm.androidmvp.activity

import android.content.Intent
import android.view.View
import android.widget.TextView
import butterknife.BindView
import butterknife.ButterKnife
import butterknife.OnClick
import com.blankj.utilcode.util.ActivityUtils
import com.wm.androidmvp.R
import com.wm.androidmvp.model.MainModel
import com.wm.androidmvp.model.MainModelImpl
import com.wm.androidmvp.presenter.MainPresenter
import com.wm.androidmvp.scene.MainSceneActivity
import com.wm.androidmvp.view.MainView
import com.wm.mvp.base.BaseActivity

class MainActivity : BaseActivity<MainModel,MainView,MainPresenter>(),MainView{

    @BindView(R.id.main_tv)
    lateinit var tv:TextView
    override fun getLayoutId(): Int = R.layout.activity_main

    override fun initView() {
    }

    override fun initData() {
        presenter?.getData()
    }

    override fun createMode(): MainModel = MainModelImpl()

    override fun createView(): MainView = this

    override fun createPresenter(): MainPresenter = MainPresenter()

    override fun setData(str: String?) {
        tv.text = "Activity：$str"
    }

    override fun showLoadingDialog() {
    }

    override fun dismisLoadingDialog() {
    }
}
